/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package containers;

/**
 *
 * @author Chris
 */
public class Groups {
    public String teacherName;
    public String groupName;
    
    public Groups(String name, String grpName) {
        teacherName = name;
        groupName = grpName;
    }
    public Groups() {}

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 31 * hash + (this.teacherName != null ? this.teacherName.hashCode() : 0);
        hash = 31 * hash + (this.groupName != null ? this.groupName.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Groups other = (Groups) obj;
        if ((this.teacherName == null || !this.teacherName.equals(other.teacherName))) {
            return false;
        }
        if ((this.groupName == null || !this.groupName.equals(other.groupName))) {
            return false;
        }
        return true;
    }
}
